const express = require('express')

var app = express()

app.listen(8080, () => {
    console.log('server is on')
})

app.get('/', (req, res) => {
    let {
        callback = Function.prototype
    } = req.query;
    let data = {
        code: 0,
        message: '连接服务器成功'
    };
    res.send(`${callback}(${JSON.stringify(data)})`);
})